package com.itheima.api;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.SmsFlashPromotionProductRelation;
import com.itheima.vo.PageResult;

/**
* @author lenovo
* @description 针对表【sms_flash_promotion_product_relation(商品限时购与商品关系表)】的数据库操作Service
* @createDate 2022-10-11 14:26:17
*/
public interface SmsFlashPromotionProductRelationApi{

    //批量选择商品添加关联
    void create(SmsFlashPromotionProductRelation flashPromotionProductRelation);


    //删除关联
    void delete(Long id);

    //分页查询不同场次关联及商品信息
    PageResult list(Integer flashPromotionId, Integer flashPromotionSessionId, Integer pageNum, Integer pageSize);

    //修改关联信息
    void update(Long id, SmsFlashPromotionProductRelation flashPromotionProductRelation);

    //根据id找relation
    SmsFlashPromotionProductRelation findById(Long id);
}
